home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Hyper / Ap-Az / AstroStack1.1.cpt / AstroStack 1.1 / card_9215.txt < prev    next >
Encoding:
Text File  |  1988-04-24  |  11.1 KB  |  385 lines

  1. -- card: 9215 from stack: in.1
  2. -- bmap block id: 10588
  3. -- flags: 0000
  4. -- background id: 2632
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.  
  9.   hide card button id 35
  10.   hide card field id 33
  11.   show card button id 34
  12.  
  13. end openCard
  14.  
  15.  
  16. -- part 1 (field)
  17. -- low flags: 01
  18. -- high flags: 0000
  19. -- rect: left=36 top=63 right=81 bottom=194
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 0
  23. -- font id: 0
  24. -- text size: 12
  25. -- style flags: 0
  26. -- line height: 16
  27. -- part name: 
  28.  
  29.  
  30. -- part 25 (button)
  31. -- low flags: 00
  32. -- high flags: A003
  33. -- rect: left=385 top=299 right=321 bottom=485
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 1
  37. -- font id: 0
  38. -- text size: 12
  39. -- style flags: 0
  40. -- line height: 16
  41. -- part name: Continue
  42. ----- HyperTalk script -----
  43.  
  44. on mouseUp
  45.   global sun, moon, mercury, venus, mars, jupiter, saturn, hour,minute, uranus, neptune, pluto, sundif, moondif, mercurydif, venusdif, marsdif,jupiterdif, saturndif, uranusdif, neptunedif, plutodif, sunX, moonX, mercuryX, venusX, marsX, jupiterX, saturnX, uranusX, neptuneX, plutoX
  46.   set the cursor to 4
  47.  
  48.   repeat with x = 1 to 10
  49.     if item 1 of line x of card field id 47 is not in card field id 48
  50.     then
  51.     beep
  52.     answer "Please check the spelling of line" && x &"."
  53.     exit mouseUp
  54.   end if
  55. end repeat
  56.  
  57. repeat with x = 1 to 10
  58.   if the number of items in line x of card field id 47 <>3
  59.   then
  60.   beep
  61.   answer "Line " & x && "needs 3 items and 2 commas."
  62.   exit mouseUp
  63. end if
  64. end repeat
  65.  
  66. repeat with x = 1 to 12
  67.   if item 1 of line 1 of card field id 47 = item 1 of line x of card field id 48 then
  68.     put (item 2 of line x of card field id 48) + (item 2 of line 1 of card field id 47) + ((item 3 of line 1 of card field id 47)/60) into sunX
  69.     exit repeat
  70.   end if
  71. end repeat
  72. repeat with x = 1 to 12
  73.   if item 1 of line 2 of card field id 47 = item 1 of line x of card field id 48 then
  74.     put (item 2 of line x of card field id 48) + (item 2 of line 2 of card field id 47) + ((item 3 of line 2 of card field id 47)/60) into moonX
  75.     exit repeat
  76.   end if
  77. end repeat
  78. repeat with x = 1 to 12
  79.   if item 1 of line 3 of card field id 47 = item 1 of line x of card field id 48 then
  80.     put (item 2 of line x of card field id 48) + (item 2 of line 3 of card field id 47) + ((item 3 of line 3 of card field id 47)/60) into mercuryX
  81.     exit repeat
  82.   end if
  83. end repeat
  84. repeat with x = 1 to 12
  85.   if item 1 of line 4 of card field id 47 = item 1 of line x of card field id 48 then
  86.     put (item 2 of line x of card field id 48) + (item 2 of line 4 of card field id 47) + ((item 3 of line 4 of card field id 47)/60) into venusX
  87.     exit repeat
  88.   end if
  89. end repeat
  90. repeat with x = 1 to 12
  91.   if item 1 of line 5 of card field id 47 = item 1 of line x of card field id 48 then
  92.     put (item 2 of line x of card field id 48) + (item 2 of line 5 of card field id 47) + ((item 3 of line 5 of card field id 47)/60) into marsX
  93.     exit repeat
  94.   end if
  95. end repeat
  96. repeat with x = 1 to 12
  97.   if item 1 of line 6 of card field id 47 = item 1 of line x of card field id 48 then
  98.     put (item 2 of line x of card field id 48) + (item 2 of line 6 of card field id 47) + ((item 3 of line 6 of card field id 47)/60) into jupiterX
  99.     exit repeat
  100.   end if
  101. end repeat
  102. repeat with x = 1 to 12
  103.   if item 1 of line 7 of card field id 47 = item 1 of line x of card field id 48 then
  104.     put (item 2 of line x of card field id 48) + (item 2 of line 7 of card field id 47) + ((item 3 of line 7 of card field id 47)/60) into saturnX
  105.     exit repeat
  106.   end if
  107. end repeat
  108. repeat with x = 1 to 12
  109.   if item 1 of line 8 of card field id 47 = item 1 of line x of card field id 48 then
  110.     put (item 2 of line x of card field id 48) + (item 2 of line 8 of card field id 47) + ((item 3 of line 8 of card field id 47)/60) into uranusX
  111.     exit repeat
  112.   end if
  113. end repeat
  114. repeat with x = 1 to 12
  115.   if item 1 of line 9 of card field id 47 = item 1 of line x of card field id 48 then
  116.     put (item 2 of line x of card field id 48) + (item 2 of line 9 of card field id 47) + ((item 3 of line 9 of card field id 47)/60) into neptuneX
  117.     exit repeat
  118.   end if
  119. end repeat
  120. repeat with x = 1 to 12
  121.   if item 1 of line 10 of card field id 47 = item 1 of line x of card field id 48 then
  122.     put (item 2 of line x of card field id 48) + (item 2 of line 10 of card field id 47) + ((item 3 of line 10 of card field id 47)/60) into plutoX
  123.     exit repeat
  124.   end if
  125. end repeat
  126.  
  127. if hour >= 12 then
  128.   put (minute + (60 * hour)) - (12 * 60)  into interval
  129. else put (12 * 60) - (minute + (60 * hour)) into interval
  130.  
  131. if abs(sun - sunX) > 300 then
  132.   if sun > sunx then put "true" into y
  133.   else put "false" into y
  134.   if y is "true" then subtract 360 from sun
  135.   else subtract 360 from sunX
  136. end if
  137. put sunX - sun into sundif
  138.  
  139. if abs(moon - moonX) > 300 then
  140.   if moon > moonx then put "true" into y
  141.   else put "false" into y
  142.   if y is "true" then subtract 360 from moon
  143.   else subtract 360 from moonX
  144. end if
  145. put moonX - moon into moondif
  146.  
  147. if abs(mercury - mercuryX) > 300 then
  148.   if mercury > mercuryx then put "true" into y
  149.   else put "false" into y
  150.   if y is "true" then subtract 360 from mercury
  151.   else subtract 360 from mercuryX
  152. end if
  153. put mercuryX - mercury into mercurydif
  154.  
  155. if abs(venus - venusX) > 300 then
  156.   if venus > venusx then put "true" into y
  157.   else put "false" into y
  158.   if y is "true" then subtract 360 from venus
  159.   else subtract 360 from venusX
  160. end if
  161. put venusX - venus into venusdif
  162.  
  163. if abs(mars - marsX) > 300 then
  164.   if mars > marsx then put "true" into y
  165.   else put "false" into y
  166.   if y is "true" then subtract 360 from mars
  167.   else subtract 360 from marsX
  168. end if
  169. put marsX - mars into marsdif
  170.  
  171. if abs(jupiter - jupiterX) > 300 then
  172.   if jupiter > jupiterx then put "true" into y
  173.   else put "false" into y
  174.   if y is "true" then subtract 360 from jupiter
  175.   else subtract 360 from jupiterX
  176. end if
  177. put jupiterX - jupiter into jupiterdif
  178.  
  179. if abs(saturn - saturnX) > 300 then
  180.   if saturn > saturnx then put "true" into y
  181.   else put "false" into y
  182.   if y is "true" then subtract 360 from saturn
  183.   else subtract 360 from saturnX
  184. end if
  185. put saturnX - saturn into saturndif
  186.  
  187. if abs(uranus - uranusX) > 300 then
  188.   if uranus > uranusx then put "true" into y
  189.   else put "false" into y
  190.   if y is "true" then subtract 360 from uranus
  191.   else subtract 360 from uranusX
  192. end if
  193. put uranusX - uranus into uranusdif
  194.  
  195. if abs(neptune - neptuneX) > 300 then
  196.   if neptune > neptunex then put "true" into y
  197.   else put "false" into y
  198.   if y is "true" then subtract 360 from neptune
  199.   else subtract 360 from neptuneX
  200. end if
  201. put neptuneX - neptune into neptunedif
  202.  
  203. if abs(pluto - plutoX) > 300 then
  204.   if pluto > plutox then put "true" into y
  205.   else put "false" into y
  206.   if y is "true" then subtract 360 from pluto
  207.   else subtract 360 from plutoX
  208. end if
  209. put plutoX - pluto into plutodif
  210.  
  211. put the value of (abs(interval)) div 60 & " h " && the value of (abs(interval)) mod 60 & " m" into line 1 of card field id 3 of card id 3295
  212. put the value of (abs(60 * sundif)) div 60 & "¬∞" && the value of (abs(60 * sundif)) mod 60 & "'" into line 2 of card field id 3 of card id 3295
  213. put the value of (abs(60 * moondif)) div 60 & "¬∞" && the value of (abs(60 * moondif)) mod 60 & "'" into line 3 of card field id 3 of card id 3295
  214. put the value of (abs(60 * mercurydif)) div 60 & "¬∞" && the value of (abs(60 * mercurydif)) mod 60 & "'" into line 4 of card field id 3 of card id 3295
  215. put the value of (abs(60 * venusdif)) div 60 & "¬∞" && the value of (abs(60 * venusdif)) mod 60 & "'" into line 5 of card field id 3 of card id 3295
  216. put the value of (abs(60 * marsdif)) div 60 & "¬∞" && the value of (abs(60 * marsdif)) mod 60 & "'" into line 6 of card field id 3 of card id 3295
  217. put the value of (abs(60 * jupiterdif)) div 60 & "¬∞" && the value of (abs(60 * jupiterdif)) mod 60 & "'" into line 7 of card field id 3 of card id 3295
  218. put the value of (abs(60 * saturndif)) div 60 & "¬∞" && the value of (abs(60 * saturndif)) mod 60 & "'" into line 8 of card field id 3 of card id 3295
  219. put the value of (abs(60 * uranusdif)) div 60 & "¬∞" && the value of (abs(60 * uranusdif)) mod 60 & "'" into line 9 of card field id 3 of card id 3295
  220. put the value of (abs(60 * neptunedif)) div 60 & "¬∞" && the value of (abs(60 * neptunedif)) mod 60 & "'" into line 10 of card field id 3 of card id 3295
  221. put the value of (abs(60 * plutodif)) div 60 & "¬∞" && the value of (abs(60 * plutodif)) mod 60 & "'" into line 11 of card field id 3 of card id 3295
  222.  
  223. go to next card
  224. end mouseUp
  225.  
  226.  
  227.  
  228. -- part 33 (field)
  229. -- low flags: 81
  230. -- high flags: 2007
  231. -- rect: left=380 top=200 right=282 bottom=485
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 0 / 0
  234. -- text alignment: 0
  235. -- font id: 0
  236. -- text size: 12
  237. -- style flags: 0
  238. -- line height: 16
  239. -- part name: 
  240.  
  241.  
  242. -- part 34 (button)
  243. -- low flags: 00
  244. -- high flags: A003
  245. -- rect: left=386 top=171 right=193 bottom=486
  246. -- title width / last selected line: 0
  247. -- icon id / first selected line: 0 / 0
  248. -- text alignment: 1
  249. -- font id: 0
  250. -- text size: 12
  251. -- style flags: 0
  252. -- line height: 16
  253. -- part name: Open Speller
  254. ----- HyperTalk script -----
  255. on mouseUp
  256.   show card field ID 33
  257.   show card button ID 35
  258.   hide card button ID 34
  259. end mouseUp
  260.  
  261.  
  262.  
  263. -- part 35 (button)
  264. -- low flags: 80
  265. -- high flags: A003
  266. -- rect: left=386 top=171 right=193 bottom=486
  267. -- title width / last selected line: 0
  268. -- icon id / first selected line: 0 / 0
  269. -- text alignment: 1
  270. -- font id: 0
  271. -- text size: 12
  272. -- style flags: 0
  273. -- line height: 16
  274. -- part name: Close Speller
  275. ----- HyperTalk script -----
  276. on mouseUp
  277.   hide card field ID 33
  278.   show card button ID 34
  279.   hide card button ID 35
  280. end mouseUp
  281.  
  282.  
  283.  
  284. -- part 48 (field)
  285. -- low flags: 00
  286. -- high flags: 4007
  287. -- rect: left=148 top=172 right=275 bottom=287
  288. -- title width / last selected line: 0
  289. -- icon id / first selected line: 0 / 0
  290. -- text alignment: 0
  291. -- font id: 3
  292. -- text size: 12
  293. -- style flags: 0
  294. -- line height: 16
  295. -- part name: 
  296.  
  297.  
  298. -- part 46 (field)
  299. -- low flags: 01
  300. -- high flags: 0001
  301. -- rect: left=148 top=140 right=299 bottom=210
  302. -- title width / last selected line: 0
  303. -- icon id / first selected line: 0 / 0
  304. -- text alignment: 65535
  305. -- font id: 0
  306. -- text size: 12
  307. -- style flags: 0
  308. -- line height: 16
  309. -- part name: 
  310.  
  311.  
  312. -- part 47 (field)
  313. -- low flags: 00
  314. -- high flags: 4002
  315. -- rect: left=210 top=140 right=299 bottom=348
  316. -- title width / last selected line: 0
  317. -- icon id / first selected line: 0 / 0
  318. -- text alignment: 0
  319. -- font id: 3
  320. -- text size: 12
  321. -- style flags: 0
  322. -- line height: 16
  323. -- part name: 
  324.  
  325.  
  326. -- part 50 (field)
  327. -- low flags: 01
  328. -- high flags: 0000
  329. -- rect: left=323 top=47 right=67 bottom=451
  330. -- title width / last selected line: 0
  331. -- icon id / first selected line: 0 / 0
  332. -- text alignment: 0
  333. -- font id: 0
  334. -- text size: 12
  335. -- style flags: 0
  336. -- line height: 16
  337. -- part name: 
  338.  
  339.  
  340. -- part contents for card part 33
  341. ----- text -----
  342. Aries                
  343. Taurus            
  344. Gemini
  345. Cancer
  346. Leo
  347. Virgo
  348. Libra
  349. Scorpio
  350. Sagittarius
  351. Capricorn
  352. Aquarius
  353. Pisces
  354.  
  355. -- part contents for card part 46
  356. ----- text -----
  357. Sun
  358. Moon
  359. Mercury
  360. Venus
  361. Mars
  362. Jupiter
  363. Saturn
  364. Uranus
  365. Neptune
  366. Pluto
  367.  
  368.  
  369.  
  370.  
  371.  
  372. -- part contents for card part 48
  373. ----- text -----
  374. Aries,   0           
  375. Taurus, 30       
  376. Gemini,  60
  377. Cancer,  90
  378. Leo, 120
  379. Virgo,  150
  380. Libra, 180
  381. Scorpio,  210
  382. Sagittarius,  240
  383. Capricorn,  270
  384. Aquarius,  300
  385. Pisces,  330